package com.hwadee.ems.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

import lombok.Getter;

@Getter
public enum CourseCategory {
    GENERAL_PREREQUISITE(0, "通识必修"),
    GENERAL_OPTIONAL(1, "通识选修"),
    PROFESSIONAL_BASICS(2, "专业基础"),
    PROFESSIONAL_CORE(3, "专业核心"),
    PROFESSIONAL_OPTIONAL(4, "专业选修"),
    PRACTICAL_TEACHING(5, "实践教学"),
    OTHER(6, "其他")
    ;

    @EnumValue
    private final int value;
    @JsonValue
    private final String description;

    CourseCategory(int value, String description) {
        this.value = value;
        this.description = description;
    }
    
}
